@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\14\bin\stsadm"

net stop SPAdminV4

%STSADM% -o deactivatefeature -name EF_EFSimpleReminder -url http://hvsp2010a:8080 -force
%STSADM% -o execadmsvcjobs

%STSADM% -o retractsolution -name efsimplereminder.wsp -immediate
%STSADM% -o execadmsvcjobs

%STSADM% -o deletesolution -name efsimplereminder.wsp -override
%STSADM% -o execadmsvcjobs

cd C:\EricFang\VisualStudio\SimpleReminder\bin\Debug
C:

%STSADM% -o addsolution -filename .\EFSimpleReminder.wsp
%STSADM% -o execadmsvcjobs

%STSADM% -o deploysolution -name efsimplereminder.wsp -immediate -allowgacdeployment -force
%STSADM% -o execadmsvcjobs

%STSADM% -o activatefeature -name EF_EFSimpleReminder -url http://hvsp2010a:8080
%STSADM% -o execadmsvcjobs

net start SPAdminV4

net stop "SharePoint 2010 Timer"
net start "SharePoint 2010 Timer"

pause
